﻿// -----------------------------------------------------------------------
// <copyright file="SwitchDepartment_BLL.cs" company="">
// TODO: Update copyright text.
// </copyright>
// -----------------------------------------------------------------------

namespace PMSGSC.BLL
{
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;
    using PMSGSC.DAL;
    using System.Data;
    /// <summary>
    /// TODO: Update summary.
    /// </summary>
    public class Maker_BLL
    {
        public static List<Maker> GetAll(int shipID)
        {
            return Maker_DAL.GetAll(shipID);
        }
        public static bool Insert(Maker maker)
        {
            return Maker_DAL.Insert(maker);
        }
        public static Maker GetDataByCode(string code, int shipID)
        {
            return Maker_DAL.GetDataByCode(code, shipID);
        }
        public static Maker GetDataByName(string name, int shipID)
        {
            return Maker_DAL.GetDataByName(name, shipID);
        }
        public static bool Update(Maker maker)
        {
            return Maker_DAL.Update(maker);
        }
        public static bool Delete(Maker maker)
        {
            return Maker_DAL.Delete(maker);
        }
        public static bool IsExits(Maker maker)
        {
            return Maker_DAL.IsExits(maker);
        }
        public static bool IsRelationship(Maker maker)
        {
            return Maker_DAL.IsRelationship(maker);
        }
    }
}
